package com.cc.feign;


import com.cc.entity.Cart;
import com.cc.fallback.CartFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "cart-server", fallback = CartFeignFallBack.class)
public interface CartFeign {
    @RequestMapping("/selectCart")
    List<Cart> selectCart(@RequestParam("userId") Integer userId);
}
